package com.dwxt.stadium.controller;

import com.dwxt.common.base.BaseResult;
import com.dwxt.stadium.service.GraphService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/stadium")
@RestController
public class OrderGraph {

    @Autowired
    private GraphService graphService;

    @RequestMapping("/stadiumGraph")
    public BaseResult stadiumGraph(){
        return graphService.stadiumGraph();
    }

    @RequestMapping("/stadiumOrderMonthGraph")
    public BaseResult stadiumOrderMonthGraph(){
        return graphService.stadiumOrderMonthGraph();
    }
}
